package ciphers;

import java.util.Scanner;

public class CipherTestDrive {
	public static void main (String [] args) {
		Scanner keyboard = new Scanner(System.in); 
		System.out.println("how much do you want to switch? "); 
		@SuppressWarnings("unused")
		int length = Integer.parseInt(keyboard.nextLine()); 
		System.out.println("What do you want to encrypt your string with? "); 
		String key = keyboard.nextLine(); 
		System.out.println("What string do you want to encrypt? "); 
		String str = keyboard.nextLine(); 

		//encryption tests
		//	System.out.println("caesar cipher: " + Cipher.caesarCipher(length, str)); 
		//	System.out.println("ROT13: " + Cipher.ROT13(str)); 
		//	System.out.println("caesarian shift: " + Cipher.caesarianShift(length, str)); 
		System.out.println("keyword cipher: " + Cipher.keywordCipher(key, str)); 
		//	System.out.println("substitution cipher: " + Cipher.substitutionCipher(str));

		//decryption tests
		//	System.out.println("decrypt caesarian shift: " + Cipher.decryptCaesarShift(length, Cipher.caesarianShift(length, str))); 
		//	System.out.println("decrypt ROT13: " + Cipher.decryptROT13(Cipher.ROT13(str))); 
		//	System.out.println("decrypt caesar cipher: " + Cipher.decryptCaesarCipher(length, Cipher.caesarCipher(length, str))); 
		System.out.println("decrypt keyword cipher: " + Cipher.decryptKeywordCipher(key, Cipher.keywordCipher(key,str))); 
	}


}
